<html>
<head>
<title>Model</title>
</head>
<body>
 <h1>Result</h1>
 <ul>
 <?php foreach($query as $item){ ?>
 <li><?php echo $item->name; ?></li>
 <?php } ?>
 </ul>
</body>
</html>
